Main content
Unit 2: Designing algorithms with conditionals
About this unit
Can computers be objective decision makers? Discover selection as you design algorithms that allow the computer to decide which code to run and when. Learn how to evaluate boolean expressions and construct conditionals to add branching logic to your programs.
What if you only want to do some things some of the time?
Practice
True or False? George Boole knows!
Practice
You come to a fork in the road: if, elif, else. Which path do you take?
Practice
Can you put a conditional inside a conditional?
Practice
How do recommendation engines know what to recommend?